<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
<%@ include file="../general_fen.jsp"%>
</head>
<body class="body_in" id="body_id">
<!-- <div class="content"> -->
    <div class="row" style="background-color: rgb(243, 244, 245); margin: 0px 15px;">
        <div style="height: 40px; background-color: rgb(243, 244, 245); margin: 5px 0;">
            <h4 style="float: left; padding-left: 10px; overflow: hidden;">兑换订单管理</h4>
        <!--功能区按钮-->
             <div style="background-color: rgb(243, 244, 245); height: 40px; width: -moz-max-content; float: right; margin-right: 15px; padding: 5px 0px 0px; border-radius: 2px; overflow: hidden;">
                <a data-original-title="新增" class="btn btn-info btn-sm btna" data-toggle="tooltip" title="" onclick="openInsert()"><span class="glyphicon glyphicon-plus" data-toggle="modal" data-target="#myModal_1"></span></a>
                <a data-original-title="禁用" class="btn btn-danger btn-sm btna" data-toggle="tooltip" title="" onclick="delPRO()"><span class="glyphicon glyphicon-trash" data-target="#myModal_4" data-toggle="modal"></span></a>
                <a data-original-title="修改" class="btn btn-success btn-sm btna" data-toggle="tooltip" title="" onclick="getPRO()"><span class="glyphicon glyphicon-pencil" data-toggle="modal" data-target="#myModal_1"></span></a>
                <a data-original-title="审核" class="btn btn-warning btn-sm btna" data-toggle="tooltip" title="" onclick="verify()"><span class="glyphicon glyphicon-eye-open" ></span></a>
                <a data-original-title="搜索" class="btn btn-ss btn-sm btna" data-toggle="tooltip" title="" ><span class="glyphicon se_gly glyphicon-search"></span></a>  
            </div>   
        </div>
        <div class="col-md-12" style="padding: 0px;">
        <div class="box">
            <table class="table table-striped table-advance table-hover">
                <thead>
                   <tr>
                        <th><input type="checkbox" id="ck-all" name="ck-all" onclick="checkall();" >&nbsp;全选</th>
                        <th>序号</th>
                        <th>兑换订单编号</th>
                        <th>兑换商品名</th>
                        <th>下单时间</th>
                        <th>兑换订单状态</th>
                        <th>备注</th>
                    </tr>
                </thead>
                <tbody id="data_list">
				</tbody>
            </table>
        </div>
        <!-- /.box -->
        </div>
    </div>
    <div class="pag_in pagination">
       
    </div>
<!-- </div> -->
<!-- 弹出框 -->  
<!-- 新增弹出框 start -->
	<div class="tank tank_order" id="myModal_1">
		<div class="modal-content">
			<div class="modal-header" style="padding: 8px;">
				<a type="button" class=" btn btn-danger btn-sm btnb" data-dismiss="modal" aria-hidden="true" data-placement="bottom" data-toggle="tooltip" title="取消" onclick="closeInsert()"> 
					<span class="glyphicon glyphicon-off"></span>
				</a> 
				<a type="button" href="javascript:insert();" class="btn btn-info btn-sm btnb" data-placement="bottom" data-toggle="tooltip" title="保存"> 
					<span class="glyphicon  glyphicon-floppy-saved"></span>
				</a>
				<h4 class="modal-title" id="myModalLabel">基本信息</h4>
			</div>
			  <div class="row" style="background-color: #E5E9EC; margin: 0 !important;">
        <div class="col-md-12" style="padding: 0px;">
        	<div style="height: 50px; background-color: rgb(243, 244, 245);">
	           <h3 style="background-color: rgb(243, 244, 245);height: 50px;line-height: 50px;text-align: center;float:left; margin: 0 0 0 45% !important; font-size: 14px;">订单兑换信息</h3>
            </div>
            <form id="productOderform" method="post" style="padding: 0 10px;">  
            <table class="table table-bordered" style="margin-bottom: 0px; background-color: #fff; ">
                <tbody>
                    <tr>
                        <td class="sty01">兑换订单编号</td>
                        <td class="sty01"> <input type="text" name="covertId" class="form-control" readonly="true"></td>
                        <td class="sty01">兑换商品名</td>
                        <td class="sty01"> 
                            <div id="product_id">   
                                <select id="productName" name="productId">
                                   
                                </select>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td class="sty01">数量</td>
                        <td class="sty01"> <input type="text" name="sum" class="form-control" ></td>
                        <td class="sty01">下单时间</td>
                        <td class="sty01">
                        	<input type="text" name="putawayDt" value="" class="form-control form-control_1 params Wdate" tag="w-params" type="text" onClick="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd HH:mm:ss'})"><span style="margin: -23px 10px 0px 0px; float: right; color: #888888;" class="glyphicon glyphicon-time demo-i"></span>	
                        </td>
                    </tr>
                      <tr>
                        <td class="sty01">是否置顶</td>
                        <td class="sty01" style="text-align: left;">
                        	 <div id="is_stick">   
                                <select name="isStick" id="isStick">
                                    <option value="1" selected="selected">是</option>
                                    <option value="0">否</option>
                                </select>
                               </div> 
                        </td>
                        <td class="sty01">备注</td>
                        <td class="sty01"><input type="text" name="remarks" class="form-control" ></td>
                    </tr>
                    <tr>
                    <td class="sty01">下单客户</td>
                    	<td class="sty01">
                    		 <select id="users" name="userId">
                                   
                             </select>
                    	</td>
                        <td class="sty01">收货人名称</td>
                        <td class="sty01">
                        	<input type="text" name="userName" class="form-control" >
                        </td>
                    </tr>
                    <tr>
                        <td class="sty01">收货人手机</td>
                        <td class="sty01"> <input type="text" name="phone" class="form-control" ></td>
                        <td class="sty01">收货人地址</td>
                        <td class="sty01"><input type="text" name="address" class="form-control" ></td>
                    </tr>
                </tbody>
            </table> 
            </form>
        </div>
        <div class="col-md-12" style="padding: 0px;">
            <!-- 列表页面 start -->
            <div class="box">
                <table class="table table-striped table-advance table-hover">
                    <thead>
                        <tr>
                            <th>订单状态</th>
                            <th>变更状态时间</th>
                            <th>备注</th>
                        </tr>
                    </thead>
                    <tbody id="list_in" class="list_in" style="height: auto !important;">
                       
                    </tbody>
                </table> 
            </div>
            <!-- 列表页面 end -->
        </div>
    </div>
		</div>
	</div>
	<!-- 新增弹出框 end -->

<!-- 搜索框开始-->
<div class="se_area">
        <div style=" padding: 5px 15px 10px;" class="search_1">
            <div style="margin: 5px;" id="se_cond">
            <div style="clear: both;"></div>
            <div class="se_date se_select">
                <span style="float: left; padding-top: 5px;">关键字：</span>
                <div class="input-group" style="border-radius: 3px;width: 80%;">
                    <input style="border-radius: 3px;" id="keyword" name="q" class="text-green form-control input-g params" tag="w-params" placeholder="关键字..." type="text">
                </div>
            </div>
            <div class="se_select">
                <span style="float: left; padding-top: 5px;">状态：</span>
                <div class="main_demo" style="width: auto;min-width: 85px; float: left; ">
                    <select class="params select2-offscreen" tag="w-params" id="status" name="status" tabindex="-1">
                        <option value="">全部</option>
                        <option value="1">是</option>
                        <option value="2">否</option>
                    </select>
                </div>
            </div>
            <div style="clear: both;"></div>
        <!-- 时间 -->
            <div class="se_date se_select">
                <span style="float: left; padding-top: 5px;">下单时间：</span>
                    <div class="demo" style="width: 40%; float: left;">
                        <input id="starttime" name="starttime" value="" class="form-control form-control_1 params Wdate" tag="w-params" type="text" onClick="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd HH:mm:ss'})"><span style="margin: -23px 10px 0px 0px;float: right;color: #888888;" class="glyphicon glyphicon-time demo-i"  ></span>
                        <div id=""></div>
                    </div>
    
                <span style="float: left; padding: 5px;">~</span>
                    <div class="demo" style="width:38%; float: left;">
                       <input id="starttime" name="starttime" value="" class="form-control form-control_1 params Wdate" tag="w-params" type="text" onClick="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd HH:mm:ss'})"><span style="margin: -23px 10px 0px 0px;float: right;color: #888888;" class="glyphicon glyphicon-time demo-i"  ></span>
                        <div id=""></div>
                    </div>
            </div>
            <div style="clear: both;"></div>
            <a type="button" href="javaScript:search();" name="seach" id="search-btn" class="ascertain_btn">确定</a>
        </div>
    </div>
</div>
<!-- 搜索框结束-->
<script type="text/javascript" src="../pointJs/productOrder.js"></script>
</body>
</html>